package com.tree.backend.service.impl;

import com.tree.backend.entity.pojo.PartyActivity;
import com.tree.backend.entity.vo.ActivityTrend;
import com.tree.backend.entity.vo.OrgActivityStats;
import com.tree.backend.mapper.PartyActivityMapper;
import com.tree.backend.service.IPartyActivityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 党建活动记录表，记录各类党建活动的基本信息和成果 服务实现类
 * </p>
 *
 * @author tree
 * @since 2025-10-15
 */
@Service
@RequiredArgsConstructor
public class PartyActivityServiceImpl extends ServiceImpl<PartyActivityMapper, PartyActivity> implements IPartyActivityService {

    private final PartyActivityMapper partyActivityMapper;

    @Override
    public List<OrgActivityStats> organizationStats() {
        return partyActivityMapper.organizationStats();
    }

    @Override
    public List<ActivityTrend> trend() {
        return partyActivityMapper.trend();
    }
}
